
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <script src="/js/vuejs-2.5.16.js"></script>
    <script src="/js/axios-0.18.0.js"></script>
</head>
<body>
<div id="app">
    <div v-for="user in userlist">
        {{user}}
    </div>
</div>
${userlist}
<script>
    var app = new Vue({
        el: "#app",
        data: {
            userlist: []
        },
        methods: {
            fun: function () {
                var _this = this;
                _this.userlist = ${userlist};
                console.log(_this.userlist);
            }
        },
        created: function () {
            this.fun();
        }
    });
</script>
</body>
</html>
